Open Rstudio on your computer. If you don’t have Rstudio, please download it from here.
Go to “File” > “New Project”. In the popped-up window, select “Version Control” > “Git”, put “https://github.com/GT-Lerouxlab/lab_website.git” under “Repository URL”, and press “Create Project”.
install.packages(c("distill", "RefManageR", "bibtex"))
To avoid conflicts from your and others’ changes on the website files, a good habit is to first pull files from Github before starting to make changes and to commit and push your changes right after you finished making changes.
Every time before you start working on your local repository, remember to first pull the content from the remote repository. This makes sure that your local repository is up-to-date to the changes someone else might have made.
This allows sharing the changes you made in your local repository to the Github repository. After successfully committing and pushing changes, you are good to go for the updates you just made :)
To preview the website, click on “Build Website” under “Build.
Under “Viewer”, we can preview the mobile-sized version of the website. You can also open up a desktop-sized version of the website by clicking on the “Show in new window” button (circled in red down below).
members.RmdThis page contains the profile of our lab members, including our principal investigator, graduate students, undergraduate students, and collaborators. The content of a profile may include, a short bio, a CV, a link to a personal website, and an email address of a lab member. Your responsibility includes collecting this information from our lab members and updating it on the website.
Some essential R Markdown syntax is common on this page (and others as well).
**bold**, bold*italics*, italics***publication.Rmd:
[CV](static/cv/file name)

; see
this example under about.Rmd).Command + Shift + i for mac users or
Ctrl + Shift + i for Windows users and use the command
knitr::include_graphics("link") in the code chunk. See
below as an example.knitr::include_graphics("https://quantscience.rbind.io/author/hok-chio-mark-lai-%E9%BB%8E%E5%AD%B8%E6%98%AD/avatar_hu5fee5d8532847d51fbb6966683aaaac0_71984_270x270_fill_q90_lanczos_center.jpg")
[text](link)If you are interested in learning more Markdown syntax, please visit this cheatsheet.
publication.RmdFrom time to time, you will receive information of our lab members’ latest publication. They may be (1) already published articles with a DOI, (2) accepted or in press articles, and (3) conference presentations.
RefManageR::GetBibEntryWithDOI(), add the DOI in a new
line. For example,RefManageR::GetBibEntryWithDOI(
unique(
c("10.1080/10705511.2020.1782206",
"10.1037/met0000287") # new DOI added here
),
temp.file = "pubs.bib",
delete.file = FALSE)
BibEntry() and save it to
ref. For example,ref <- c(
BibEntry(
bibtype = "unpublished",
key = "firstauthor_year",
title = "article name",
author = "author 1 last name, first name and author 2 last name, first name, etc.",
year = "year",
journal = "journal name",
date = "date accepted", # optional
pubstate = "Manuscript accepted for publication"
)
# add more down below
)
For conference presentations, we currently need to manually
format their citations (I may customize a bibtype later in
time). The format is as follows:
[Schedule/Powerpoint slides](link).Don’t worry – I am always here to help. Problems occur all the time particularly at the beginning. Whenever issues come up – broken links and images, failing to knit or build the website, or getting lost in all these tasks, you are always welcome to ask help from me. It will always be helpful for me to understand better your situation if you screenshot what problems you have on your end and briefly describe how you get there.
Hope you have fun playing around with the website :) Don’t hesitate to reach out to me if you find the workload too heavy or if you have any concerns!